#ifndef _CINDICATOR_STDDEV_H
#define _CINDICATOR_STDDEV_H
namespace GSTrader
{
	namespace Indicator
	{
		class INDICATOR_API StdDev : public CIndicator
		{
		public:
			StdDev();
			StdDev(CSeries* pInput, int n, int nBarType = bdtClose);
			virtual ~StdDev();
			virtual CIndicator* CreateInstance();

			virtual double Calculate(int nIndex);

			void SetParam(int n, int nBarType);
			virtual void SetParam(double* pdParam);
			virtual void RefreshData();

		private:
			int m_n;
			int m_nBarType;
		};
	}
}

#endif // _CINDICATOR_STDDEV_H
